package com.czkt.t283bootmybatis.mapper;

import com.czkt.t283bootmybatis.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    /**
     * 根据账号获取用户信息
     * @param account
     * @return
     */
    public SysUser findByAccount(String account);

    //带条件查询分页数据
    public List<SysUser> findByPage(@Param("realName") String realName,
                                    @Param("roleId") Integer roleId,
                                    @Param("beginIndex") Integer beginIndex,
                                    @Param("showSize") Integer showSize );


    //总行数
    public int findCount(@Param("realName") String realName,
                                    @Param("roleId") Integer roleId);
}
